package com.dream.keigezhushou.Activity.acty.personal;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RadioButton;
import android.widget.TextView;

import com.dream.keigezhushou.Activity.activity.BaseActivity;
import com.dream.keigezhushou.Activity.view.MyRadioGroup;
import com.dream.keigezhushou.Activity.view.NestedScrollViewBottom;
import com.dream.keigezhushou.R;

import butterknife.BindView;
import butterknife.ButterKnife;

public class ApplyRefundActivity extends BaseActivity {

    @BindView(R.id.iv_return)
    ImageView ivReturn;
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.radBtn1)
    RadioButton radBtn1;
    @BindView(R.id.radBtn2)
    RadioButton radBtn2;
    @BindView(R.id.radBtn3)
    RadioButton radBtn3;
    @BindView(R.id.radBtn4)
    RadioButton radBtn4;
    @BindView(R.id.my_rg)
    MyRadioGroup myRg;
    @BindView(R.id.btb_apply)
    Button btbApply;
    @BindView(R.id.scroll_bottom)
    NestedScrollViewBottom scrollBottom;

    private Intent intent;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_apply_refund);
        ButterKnife.bind(this);

        initView();
        initData();
    }

    //初始化界面
    protected void initView() {

        tvTitle.setText("申请退款");
    }

    //初始化数据
    protected void initData() {

        ivReturn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                //返回
                finish();
            }
        });


        //滑动到底部的监听
        scrollBottom.setScrollBottomListener(new NestedScrollViewBottom.ScrollBottomListener() {
            @Override
            public void scrollBottom() {

            }
        });

        btbApply.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                intent = new Intent(ApplyRefundActivity.this,ApplySuccessActivity.class);
                startActivity(intent);

            }
        });
    }
}
